-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect V for EIP712 signature #152
Incorrect V for EIP712 signature #152
Conversation
@digiwand @lambertkevin Could we test this implementation against https://github.com/MetaMask/eth-sig-util to prevent issues like this in the future? It may be out of scope for this PR. |
Hi @FrederikBolding ! Well the problem is that to my knowledge, @metamask/eth-sig-utils And that's actually the reason why the issue is noticed only now that people start using ECDSA verification onchain with EIP-712 messages, because contrary to those libs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the code with macOS x Chrome x Nano X using the test-dapp. LGTM! Thanks @lambertkevin
will hold on merging for @FrederikBolding, or another dev, to review
I am seeing this issue as well, where signatures are different by decimal 27 between Ledger Live and Metamask+Ledger |
As described by #134 and #151, the V parsed by Metamask for a
signTypedData
is incorrect. The signature is not expected to be composed with the parity/recovery but with the classic27
or28
.This PR fixes this and updates the CI tests.
Thanks 🙏